<div class="card">
    <ul class="list-group list-group-flush text-center">
        <li class="list-group-item {$nav == 'info' ? 'bg-primary' : ''}"><a class="{$nav == 'info' ? 'text-white' : ''}" href="/user">个人信息</a></li>
        <li class="list-group-item {$nav == 'avatar' ? 'bg-primary' : ''}"><a class="{$nav == 'avatar' ? 'text-white' : ''}" href="/user/avatar">修改头像</a></li>
        <li class="list-group-item {$nav == 'blog' ? 'bg-primary' : ''}"><a class="{$nav == 'blog' ? 'text-white' : ''}" href="/user/blog">所有博客</a></li>
    </ul>
</div>
